Prev | Next

Changing Flag Attributes

<< | >>

Using Air Friction To Slow Things Down

Overview

We don't live in a vacuum. Well, I don't live in a vacuum. And this means that, in my world, there are all sorts of particles and dynamic forces that cause friction to a flag blowing in the wind. Therefore, a flag will never move quite as much as the wind would like it to.

The Air Friction parameter can be used to control how the flag reacts to the environment (wind, gravity, etc.). With no friction, the flag may blow wildly, even with a light wind. With a lot of friction, the flag may not respond to wind or gravity very much.

In general a small amount of Air Friction will help keep the flag under control.

Removing Friction

The default value for Air Friction is 5 (percent). This means that, at each frame, the flag will only undulate about 95% of what wind and gravity tell it to.

Let's see how the flag reacts when there is no friction.

  1. Open the "Quick Start.aep" project.
  2. Open the Options window by clicking the 3D Flag logo in the Effect Controls window.



  3. Pause the animation by pressing the spacebar.
  4. Set Air Friction to 0. This allows the flag to fully respond to wind and gravity.



  5. Play the animation by clicking the Restart Simulation button.

    Notice that the flag flaps about quite a bit more than when Air Friction was 5. This is because there are less constraints on the flag's movement.

Adding A Lot of Friction

Now let's see what happens when we set the air friction to a high value.

  1. Pause the animation by pressing the spacebar.
  2. Change Air Friction to 50. This means that the flag will only respond to about 50% of what it's requested to do. It would take a lot of wind to overcome that.
  3. Play the animation by clicking the Restart Simulation button. The flag now undulates slowly, as if it's struggling just to move.
  4. When you're done watching the flag, click the OK button to close the Options window.

Depending on the size of your mesh, a higher Air Friction can create more folds in the flag as it undulates.

Usually, Air Friction values in the range of 0 to75 are sufficient.

Now that you've learned about the different parameters that affect a flag's look, How To Make Flags Look Large will show you how to use the different parameters to create flags that look big.